#ifndef NIXONBOT_CORE_BNCS_PROTOCOL_FLOODDETECTED_H_
#define NIXONBOT_CORE_BNCS_PROTOCOL_FLOODDETECTED_H_

#include <nixonbot/core/bncs/protocol/Message.h>
#include <nixonbot/core/bncs/protocol/MessageFactory.h>

namespace nixonbot {
  namespace core {
    namespace bncs {
      namespace protocol {

	struct FloodDetectedData : public QSharedData
	{
	};

	class FloodDetected : public Message
	{
	public:
	  static const int id = 0x13;
	  BNCS_MESSAGE_CLIENT_REGISTER(FloodDetected, id);

	public:
	  QSharedDataPointer<StopAdvData> d;

	public:
	  FloodDetected()
	  {
	    d = new FloodDetectedData();
	  }
	
	  virtual FloodDetected* create()
	  {
	    return new FloodDetected();
	  }
	
	  virtual quint32 id()
	  {
	    return id;
	  }

	  virtual int size()
	  {
	    return 0;
	  }

	protected:
	  virtual void readFrom(QDataStream& ds)
	  {
	  }

	  virtual void writeTo(QDataStream& ds)
	  {
	  }
	};

      }
    }
  }
}

#endif
